package com.yangfan.springcloud.service;

import org.springframework.stereotype.Component;


/**
 * 使用接口 事先
 */
@Component
public class PaymentServiceFallback implements  PaymentService{

    @Override
    public String ok(Long id) {
        return "============== o(╥﹏╥)o ============== ok 失败了";
    }

    @Override
    public String error(Long id) {
        return "============== o(╥﹏╥)o ============== error 失败了";
    }

}
